<?php
session_start();
if (isset($_SESSION['log']))  
{
   unset($_SESSION['log']);
   setcookie('userCookie', "", -1);
   session_destroy();
}

header('Location:../index.php');
?>